[Solved] umbraco.library:GetMedia does not find media node
Not sure if this is directly related to the XSLT, but I'm having issues retrieving data using the umbraco.library:GetMedia function even though I pass a valid id.
The server returns:
[code]No media is maching '5107'[/code]
If I go to the media section, open the media and reloads the page it works!
So I guess there might be some publishing issues?! Anyone experienced anything similar and know of a way to republish all media content?
Problem was that I used ZipUpload to upload media and it seems like it did not populate the XML cache which is used by the umbraco.library:GetMedia function. Noerd had already found a similar problem with his MultipleFileUpload package, so I just made a usercontrol looping through all media and generating the XML cache from it.
I got caught by this recently where i had uploaded images using zipload and it was driving me nuts I could see i had the item but still could not get it in xslt. Many thanks for this will know what to do next time.
[Solved] umbraco.library:GetMedia does not find media node
Not sure if this is directly related to the XSLT, but I'm having issues retrieving data using the umbraco.library:GetMedia function even though I pass a valid id.
The server returns:
[code]No media is maching '5107'[/code]
If I go to the media section, open the media and reloads the page it works!
So I guess there might be some publishing issues?! Anyone experienced anything similar and know of a way to republish all media content?
Hi nikolas,
umbraco version? Any path to reproduction?
TIA,
/Dirk
Hi Dirk,
RC3 and the error can be seen at e.g. http://www.oceanshop.no/baatpleie/hempel-baatpleie/custom-marine-polish-0,5-l.aspx while it works on e.g. http://www.oceanshop.no/elektronikk-og-navigasjon/stereoradio-og-tvdvd/tv-19-lcd-mtekst-livin---nytt-design.aspx (and here I've only opened the media in Umbraco without saving it or similar).
We're on an early design stage, so don't mind all the mess! ;)
Problem was that I used ZipUpload to upload media and it seems like it did not populate the XML cache which is used by the umbraco.library:GetMedia function. Noerd had already found a similar problem with his MultipleFileUpload package, so I just made a usercontrol looping through all media and generating the XML cache from it.
Any Chance you could share the code that does this??? i'm having the same problem
I've solve this by opening every item in umbraco - media and press "Save" button :)
domagoj.barisic,
I got caught by this recently where i had uploaded images using zipload and it was driving me nuts I could see i had the item but still could not get it in xslt. Many thanks for this will know what to do next time.
regards
Ismail
is working on a reply...